<extend name="Public/base"/><block name="body"><div class="Tool_Bar" id="Standard_Bar">
	<dl>
		<dt>编辑报告</dt>
		<dd><a href="JavaScript:void(0);" onclick="Model_Form('Test_Search_From','添加');"><span>添加</span></a></dd>
		<dd><a href="JavaScript:void(0);" onclick="GoUrl('/index.php?m=Admin&amp;c=Test&amp;a=add')"><span>提交</span></a></dd>
	</dl>
</div>
<div style="display: none">
<form id="Test_Search_From" >
<fieldset class="Form_1 Form_2">
	<div class="formitm">
		<label class="lab" for="for_field_group">数据：</label>
		<div class="ipt">
			<textarea id="for_field_group" class="easyui-textbox textbox-f" style="width: 300px; height: 200px; display: none;" data-options="required:false,multiline:true" textboxname="field_group"></textarea>
			<p>一行一个，示例： <br>
				12 <br>
				18</p>
		</div>
	</div>
</fieldset>
</form>
</div>
<table id="Test_Data_List"></table>
<script type="text/javascript">
$(function() {
	$("#Test_Data_List").datagrid({
		url : "{:U('Standard/index')}",
		fit : true,
		striped : true,
		border : false,
		pagination : false,
		pageSize : 100,
		pageList : [ 50, 100 ],
		pageNumber : 1,
		sortName : 'id',
		sortOrder : 'desc',
		toolbar : '#Standard_Bar',
		singleSelect : true,
		columns : [[

			{field : "name",title : "污染物项目",width :100},

			{field : "no",title : "CAS 编号",width :100},

            {field : "data",title : "数据",width :100},

			{field : "operate",title : "操作",width : 200,formatter: function (value, row, index) {
				operate_menu='';

				<if condition="Is_Auth('Admin/Standard/edit')">
				operate_menu = operate_menu+"<a href='<?php echo U('edit'); ?>&id="+row.id+"' >编辑</a>";
				</if>

				return operate_menu;
			}}
		]]
	});
})
<!-- 扩展数据 starp-->
<!-- 扩展数据 end-->
</script></block>